package com.ruoyi.system.domain;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "mail")
@PropertySource(value = { "classpath:application-druid.yml" })
public class EmailConfig {
    private static String email;

    public static String getEmail() {
        return email;
    }

    @Value("${email}")
    public void setEmail(String email) {
        EmailConfig.email = email;
    }
}
